using Mengsk.ProxyDelivery.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mengsk.ProxyDelivery.Dao.HibernateImpl
{
    public class VendorDao : HibernateDao<Vendor>, IVendorDao
    {
        public IList<Vendor> GetBySpider(int spider)
        {
            return this.GetAllByField("Spider", spider);
        }

        public IList<Vendor> GetByMarket(int market)
        {
            return this.GetAllByField("Market", market);
        }

        public IList<Vendor> GetByName(string name)
        {
            return this.GetAllByField("Name", name);
        }

        public IList<Vendor> GetByMarketAddressLike(string doorNumber)
        {
            return this.GetAllByFieldLike("MarketAddress", doorNumber);
        }

        public IList<Vendor> GetByPhone(string phone)
        {
            return this.GetAllByFieldLike("Phone", phone);
        }

        public IList<Vendor> GetByQQ(string qq)
        {
            return this.GetAllByFieldLike("QQ", qq);
        }
    }
}
